<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/page/common/tag-lib.jsp"%>
<script charset="utf-8" src="<c:url value="/script/kindeditor/kindeditor-min.js"></c:url>"></script>
<script charset="utf-8" src="<c:url value="/script/kindeditor/lang/zh_CN.js"></c:url>"></script>
<script charset="utf-8" src="<c:url value="/script/jquery/jquery-1.7.2.js"></c:url>"></script>

<link href="<c:url value="/"></c:url>css/base.css" rel="stylesheet" />
<script type="text/javascript">
<!--
var editor;
KindEditor.ready(function(K) {
	editor = K.create('textarea[name="articleContent"]', {
		allowFileManager : true
	});
});
function submitArticle(){
	alert("");
	try{
		alert(editor.html());
		articleForm.articleContent.value=editor.html();
		articleForm.submit();
	}catch(e){
		alert(e.message);
	}
}
//-->
</script>
<div id="createArticleForm" class="formList">
	<html:form action="/sys/ArticleAction?method=createArticle" method="post" onsubmit="submit()" >
		<div class="formLine">
		  <div class="textField">
		 	<label>标题</label>
		    <html:text property="title" ></html:text>
		  </div>
		 </div>
		 <div class="formLine">
		 	
		 	<div class="textField">
		 		<label>副标题</label>
		 		<html:text property="subTitle"></html:text>
		 	</div>
		 </div>
		 <div class="formLine">
		 	<div class="textField">
		 		<label>作者</label>
		 		<html:text property="author"></html:text>
		 	</div>
		 </div>
		 <div class="formLine">
		 	<div class="textField">
		 		<label>来源名称</label>
		 		<html:text property="sourceName"></html:text>
		 	</div>
		 </div>
		 <div class="formLine">
		 	<div class="textField">
		 		<label>来源URL</label>
		 		<html:text property="sourceUrl"></html:text>
		 	</div>
		 </div>
		 <div class="formLine">
		 	<div class="textField">
		 		<label>内容</label>
		 		<html:textarea rows="20" cols="120" property="articleContent"></html:textarea>
		 	</div>
		 </div>
		 <div class="formLine">
		 	<div class="submitBtn">
		 		<html:button property="" value="登陆"  onclick="submitArticle('lll')"></html:button>
		 	</div>
		 </div>
		 
	</html:form>
</div>